home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
lzw4p12.zip
/
MEMORY.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-02-15
|
481b
|
26 lines
Unit Memory;
interface
function AllocMemory(Size : Word) : Pointer;
function FreeMemory(P : Pointer; Size : Word) : Integer;
implementation
function AllocMemory(Size : Word) : Pointer;
var
P : Pointer;
begin
GetMem(P, Size);
(*writeln('Allocating ',Size,' bytes');*)
AllocMemory := P;
end;
function FreeMemory(P : Pointer; Size : Word) : Integer;
begin
FreeMem(P, Size);
(*writeln('Freeing ',Size,' bytes');*)
FreeMemory := 0;
end;
end.